home *** CD-ROM | disk | FTP | other *** search
/ Gigarom 1 / Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso / FILES / HYP / H-I / HyperHackers.cpt / Hyper-Hackers Queue 1.0 / card_13420.txt < prev    next >
Text File  |  1989-02-26  |  749b  |  27 lines

  1. -- card: 13420 from stack: in.0
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 3797
  5. -- name: 
  6.  
  7.  
  8. -- part contents for background part 1
  9. ----- text -----
  10.  
  11. From: Jakob Nielsen  Tech Univ of Denmark <DATJN@NEUVM1.bitnet>
  12.  
  13. Date:         Tue, 05 Jan 88 02:37:54 DNT
  14.  
  15. What is a good way to test if the contents of a field is an integer ?
  16.  
  17. I want to do input validation to protect my users from getting
  18. strange error messages later in a HyperTalk program.
  19. One alternative would be to trap HyperCard's error messages
  20. (how does one do that) - perhaps after having multiplied the
  21. field with one just to see whether it is in fact a number.
  22.  
  23.  
  24.  
  25. -- part contents for background part 45
  26. ----- text -----
  27. Input validation   (test if input is numerical)